package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartFile;
@Controller
public class BookControler {
	@RequestMapping(value="/addBook",method={RequestMethod.POST})
	public String addBooks(MultipartFile bookImg) throws Exception{
		System.out.println(bookImg.getOriginalFilename());
		System.out.println(bookImg.getBytes().length);
		return "suc";
	}
}
